package com.stable.vo.bus;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 财务指标
 * 参考 http://f10.eastmoney.com/NewFinanceAnalysis/MainTargetAjax?type=1&code=SZ300750
 */
@Data
@Document(indexName = "new_finance")
public class NewFinance extends EsBase {
    public NewFinance() {
    }
    // code+dateMilli
    @Id
    private String id;
    @Field(type = FieldType.Text)
    private String code;
    @Field(type = FieldType.Integer)
    private int type;               //0按报告期、1=年报
    @Field(type = FieldType.Text)
    private String date;  			//报日期
    @Field(type = FieldType.Long)
    private long dateMilli;         // 日期date 毫秒
    @Field(type = FieldType.Double)
    private double yyzsrtbzz;   	//营业总收入同比增长(%)
    @Field(type = FieldType.Double)
    private double gsjlrtbzz;		//归属净利润同比增长(%)
    @Field(type = FieldType.Double)
    private double kfjlrtbzz;       //扣非净利润同比增长(%)
    @Field(type = FieldType.Double)
    private double jqjzcsyl;		//加权净资产收益率(%) ROE
    @Field(type = FieldType.Double)
    private double mll;				//毛利率(%)
    @Field(type = FieldType.Double)
    private double jll;				//净利率(%)
    @Field(type = FieldType.Double)
    private double xsxjlyysr;		//销售现金流/营业收入
    @Field(type = FieldType.Double)
    private double zcfzl;           //资产负债率(%)

    public void setId() {
        this.id = code + type + dateMilli;
    }
}
